import request from '@/utils/request'

// export const register = data => {
//   return request({
//     method: 'post',
//     url: 'user/register',
//     data // 请求体参数
//   })
// }
export const register = data => request.post('user/register', data)
export const login = data => request.post('user/login', data)
